package com.yingxin.yxerp.module.permission.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

/**
 * <p>
 * app功能权限
 * </p>
 *
 * @author matongtong
 * @since 2023-12-04
 */
@Data
@ApiModel(value="AppPermissionUpdateVo对象", description="app功能权限")
public class AppPermissionUpdateVo implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id", required = true)
    private String id;

    @ApiModelProperty(value = "权限类型 M  LP")
    @Length(max = 10)
    private String type;

    @ApiModelProperty(value = "层级")
    private String level;

    @ApiModelProperty(value = "父编号")
    private String parentId;

    @ApiModelProperty(value = "分组名称")
    @Length(max = 20)
    private String applicationName;

    @ApiModelProperty(value = "页面地址")
    @Length(max = 100)
    private String applicationPath;

    @ApiModelProperty(value = "图标底色")
    private String colorClass;

    @ApiModelProperty(value = "图标")
    private String icon;


    @ApiModelProperty(value = "状态开启关闭 :  0 关闭，1 开启")
    @Length(max = 1)
    private String status;

    @ApiModelProperty(value = "展示不开启 :  0 关闭，1 开启")
    @Length(max = 1)
    private String isShow;

    @ApiModelProperty(value = "排序")
    @Range(min = 0, max = 99999999)
    private Integer sort;

}
